package com.oneday.nuo.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;


/**
 * (NuoRoleAuth)表实体类
 *
 * @author liushuai
 * @since 2021-03-13 23:37:31
 */
@ApiModel(value = "")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("nuo_role_auth")
public class NuoRoleAuthEntity extends Model<NuoRoleAuthEntity> {
    private static final long serialVersionUID = -90739917758275004L;

    /**
     * 主键主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @NotNull(message = "{id.require}")
    @ApiModelProperty(value = "主键主键")
    private String id;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id")
    private String roleId;
    /**
     * 权限id
     */
    @NotNull(message = "权限id不能为空")
    @ApiModelProperty(value = "权限id")
    private String authId;
}